package com.inspur.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.inspur.system.mapper.PmFileInfoMapper;
import com.inspur.system.domain.PmFileInfo;
import com.inspur.system.service.IPmFileInfoService;

/**
 * 文件上传Service业务层处理
 * 
 * @author lihaodong
 * @date 2024-04-10
 */
@Service
public class PmFileInfoServiceImpl implements IPmFileInfoService 
{
    @Autowired
    private PmFileInfoMapper pmFileInfoMapper;

    /**
     * 查询文件上传
     * 
     * @param cFileNo 文件上传主键
     * @return 文件上传
     */
    @Override
    public PmFileInfo selectPmFileInfoByCFileNo(Long cFileNo)
    {
        return pmFileInfoMapper.selectPmFileInfoByCFileNo(cFileNo);
    }

    /**
     * 查询文件上传列表
     * 
     * @param pmFileInfo 文件上传
     * @return 文件上传
     */
    @Override
    public List<PmFileInfo> selectPmFileInfoList(PmFileInfo pmFileInfo)
    {
        return pmFileInfoMapper.selectPmFileInfoList(pmFileInfo);
    }

    /**
     * 新增文件上传
     * 
     * @param pmFileInfo 文件上传
     * @return 结果
     */
    @Override
    public int insertPmFileInfo(PmFileInfo pmFileInfo)
    {
        return pmFileInfoMapper.insertPmFileInfo(pmFileInfo);
    }

    /**
     * 修改文件上传
     * 
     * @param pmFileInfo 文件上传
     * @return 结果
     */
    @Override
    public int updatePmFileInfo(PmFileInfo pmFileInfo)
    {
        return pmFileInfoMapper.updatePmFileInfo(pmFileInfo);
    }

    /**
     * 批量删除文件上传
     * 
     * @param cFileNos 需要删除的文件上传主键
     * @return 结果
     */
    @Override
    public int deletePmFileInfoByCFileNos(Long[] cFileNos)
    {
        return pmFileInfoMapper.deletePmFileInfoByCFileNos(cFileNos);
    }

    /**
     * 删除文件上传信息
     * 
     * @param cFileNo 文件上传主键
     * @return 结果
     */
    @Override
    public int deletePmFileInfoByCFileNo(Long cFileNo)
    {
        return pmFileInfoMapper.deletePmFileInfoByCFileNo(cFileNo);
    }
}
